package com.my.blog.myblog.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.my.blog.myblog.entity.Blog;
import com.my.blog.myblog.entity.custom.TimeCount;
import com.my.blog.myblog.mapper.BlogMapper;
import com.my.blog.myblog.service.BlogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;

/***
 *
 * @Auther: MuYun
 * @Date: 2021/8/19 16:28
 * @Description： blog的服务实现类
 *
 */
@Service
public class BlogServiceImpl extends ServiceImpl<BlogMapper, Blog> implements BlogService{

    @Resource
    private BlogMapper blogMapper;

    @Override
    public List<TimeCount> selectBlogConutByDate(HashMap<String, Object> map) {
        return blogMapper.selectBlogCountByDate(map);
    }
}
